import {RouteProps} from "react-router";

export interface IResult{
    code:Number,
    msg:string,
    data:any
}

export interface IRouteProps extends RouteProps {
    key: string
}

export interface ISuccessInnerFn{
    (success:ISuccessFn,error:IErrorFn):any
}
export interface  ISuccessFn {
    (result:IResult): any;
}


export interface  IErrorFn {
    (result:IResult): any;
}
